package route

import (
	"github.com/gin-gonic/gin"

	"myproject/controller"
)

func PathRoute(r *gin.Engine) *gin.Engine {

	rootPath := r.Group("/")
	{
		newsPath := r.Group("news")
		{
			controller.News(newsPath)
		}
		userPath := rootPath.Group("user")
		{
			controller.UserRegister(userPath)
		}
	}

	return r
}
